center

open fun center(): Point

Returns the center point of the rectangle in the global coordinate system.

Since the coordinates are integers, the standard rules of Java integer division rounding apply.